home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _50CA772B27E248E180FAD74C89386CB2 < prev    next >
Encoding:
Text File  |  2004-07-20  |  5.0 KB  |  215 lines

  1. // $TEXTURE1
  2. // $TEX1OPTIONSFILE
  3. // $DIRT
  4. // $DIRTOPTIONSFILE
  5. // $NORMALS
  6. // $NORMALSOPTIONSFILE
  7. // $SPECPOW
  8.  
  9.  
  10.  
  11. Shader()
  12. {
  13.     ShaderQuality(5)
  14.     Pass()
  15.     {
  16.         //lighting()
  17.         VertexShader("CarBR_CmCdDm_Bump_ps20.vsh")
  18.         Pixelshader("CarBR_CmCdDm_Bump_ps20.psh")
  19.  
  20.         !include("__Tex1.mtt")
  21.         !include("__Dirt.mtt")
  22.         !include("__CloudsVS.mtt")
  23.         !include("__TerrainColormapVS.mtt")
  24.         //!include("__DynamicCubeMap.mtt")
  25.         !include("__CubeMap.mtt")
  26.         !include("__DirtNormalsMap.mtt")
  27.  
  28.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  29.     }
  30.     Cull("cw")
  31. }
  32.  
  33. Shader()
  34. {
  35.     ShaderQuality(4)
  36.     Pass()
  37.     {
  38.         VertexShader("CarBR_CmCdDm_ps20.vsh")
  39.         Pixelshader("CarBR_CmCdDm_ps20.psh")
  40.  
  41.         !include("__Tex1.mtt")
  42.         !include("__Dirt.mtt")
  43.         !include("__CloudsVS.mtt")
  44.         !include("__TerrainColormapVS.mtt")
  45.         // !include("__DynamicCubeMap.mtt")
  46.         !include("__CubeMap.mtt")
  47.         !include("__DirtNormalsMap.mtt")
  48.  
  49.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  50.     }
  51.     Cull("cw")
  52. }
  53.  
  54. shader()
  55. {
  56.     ShaderQuality(3)
  57.     pass()
  58.     {
  59.         //Lighting()
  60.         Pixelshader("CarBR_CmCd_ps14.psh")
  61.         Vertexshader("CarBR_CmCd_ps14.vsh")
  62.  
  63.         !include("__tex1.mtt")
  64.         !include("__Dirt.mtt")
  65.         !include("__TerrainColormapVS.mtt")
  66. //        !include("__TerrainColormapSmallVS.mtt")
  67.         !include("__CloudsVS.mtt")
  68. //        !include("__DynamicCubeMap.mtt")
  69.         !include("__CubeMap.mtt")
  70.  
  71.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  72.     }
  73.     Cull("cw")
  74. }
  75.  
  76. shader()
  77. {
  78.     ShaderQuality(2)
  79.     pass()
  80.     {
  81.         //Lighting()
  82.         Pixelshader("CarBR_Cm_ps11.psh")
  83.         Vertexshader("CarBR_Cm_ps11.vsh")
  84.  
  85.         !include("__tex1.mtt")
  86.         !include("__Dirt.mtt")
  87.         !include("__TerrainColormapSmallVS.mtt")
  88. //        !include("__DynamicCubeMap.mtt")
  89.         !include("__CubeMap.mtt")
  90.  
  91.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  92.     }
  93.     Cull("cw")
  94. }
  95.  
  96. shader()
  97. {
  98.     ShaderQuality(1)
  99.     pass()
  100.     {
  101.         //Lighting()
  102.         Pixelshader("CarBR_ps11.psh")
  103.         Vertexshader("CarBR_ps11.vsh")
  104.  
  105.         !include("__tex1.mtt")
  106.         !include("__Dirt.mtt")
  107.         !include("__TerrainColormapSmallVS.mtt")
  108.  
  109.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  110.     }
  111.     Cull("cw")
  112. }
  113.  
  114. //=========================== GF2 ======================================
  115.  
  116. shader()
  117. {
  118.     ShaderQuality(2)
  119.  
  120.     pass()
  121.     {
  122.         Lighting()
  123.         tmu()
  124.         {
  125.             TexGen("planar")
  126.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  127.             texture()
  128.             {
  129.                 Image(%colortexturesmall)
  130.                 addressfunc("clamp", "clamp", "clamp")
  131.             }
  132.             ColorOp("mul_add", "texture_a", "current", "diffuse_a")
  133.             AlphaOp("arg1", "texture_a", "current", "current")
  134.         }
  135.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  136.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  137.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  138.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  139.         SpecularPow(0.0)
  140.  
  141.     }
  142.     lightpass()
  143.     !include("spot_spotmap.mtt")
  144.  
  145.     pass()
  146.     {
  147.         Lighting()
  148.         tmu()
  149.         {
  150.             Texture()
  151.             {
  152.                 Mapchannel(0)
  153.                 Image(DIRT_GF2)
  154.                 !include(DIRTOPTIONSFILE)
  155.             }
  156.             ColorOp("arg1", "tfactor", "current", "current")
  157.             AlphaOp("mul", "tfactor_a", "texture_a", "current")
  158.         }
  159.         tmu()
  160.         {
  161.             Texture()
  162.             {
  163.                 Mapchannel(0)
  164.                 Image(TEXTURE1)
  165.                 !include(TEX1OPTIONSFILE)
  166.             }
  167.             ColorOp("blend_current_alpha", "current", "texture", "current")
  168.         }
  169.  
  170.         tfactor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  171.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  172.  
  173.         AmbientColor(0.0, 0.0, 0.0, 1.0)
  174.         DiffuseColor(0.0, 0.0, 0.0, 1.0)
  175.         SpecularColor(%sunvisibility, %sunvisibility, %sunvisibility, 1.000)
  176.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  177.         SpecularPow(SPECPOW)
  178.  
  179.         BlendFunc("zero", "src_color")
  180.     }
  181.  
  182.     Cull("cw")
  183. }
  184. //=======================================================
  185. /*
  186. shader()
  187. {
  188.     ShaderQuality(0)
  189.     pass()
  190.     {
  191.         Lighting()
  192.         Pixelshader("Common_specular.psh")
  193.         Vertexshader("Common_specular.vsh")
  194.         !include("__tex1.mtt")
  195.     }
  196.     Cull("cw")
  197. }
  198. */
  199. shader()
  200. {
  201.     ShaderQuality(0)
  202.     pass()
  203.     {
  204.         Lighting()
  205.         !include("__tex1.mtt")
  206.  
  207.         !include("__LightningColorsSpecGF2.mtt")
  208.     }
  209. //    lightpass()
  210. //    !include("spot_spotmap.mtt")
  211.  
  212.     Cull("cw")
  213. }
  214.  
  215.